#ifndef BUFFER_H_
#define BUFFER_H_

class Buffer{
public:
        Buffer(const char* filepath);
        ~Buffer();
        char getChar();
        void ungetChar(int i);
private:
        char* mMemory1;
        char* mMemory2;
        char* mCurrentBuffer;
        void loadBuffer(char* currentBuffer);
        void switchBuffer();
        int mFile;
        int mCurrentPosition;
        bool mLoadNewBuffer;
        bool mCanGoBack;
};

#endif /* BUFFER_H_ */